from flask import Blueprint, render_template
from flask_jwt_extended import jwt_required

user_api = Blueprint("user", __name__)

@user_api.get("/user/profile")
@jwt_required()
def user_profile():
    return {
        "code": 0,
        "msg": "获取个人数据成功",
        "data": current_user.json(),
    }
